<template>
  <div class="setting-container">
    <el-form ref="form" :model="form" label-width="120px">
      <el-form-item label="通讯端口">
        <el-select v-model="form.region" placeholder="请选择">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
        <el-button type="primary" style="margin-left:10px;">打开</el-button>
      </el-form-item>
      <el-form-item label="条形码类型">
        <p>
          <el-select v-model="form.region" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </p>
        <p>
          <el-checkbox v-model="form.region">读书反转</el-checkbox>
        </p>
      </el-form-item>
      <el-form-item label="反转基准值">
        <el-input-number v-model="form.region" :step="1" :precision="0" :min="0"></el-input-number>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
  <script> 
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    }
  }
}
  </script>
  <style lang="less">
.setting-container {
  padding: 15px;
}
</style>